import { getStoreId } from '@/utils'
import request from '@/utils/request'



/**
 * 常用功能新增
 * @param {*} menuIds 
 */
export function oftenMenuSave (menuIds) {
  return request.put(`/oftenMenu/save`, { menuIds: menuIds })
}
/**
 * 查询常用功能按钮组
 */
export function oftenMenuFindAll () {
  return request.get(`/oftenMenu/findAll`)
}



/**
 * 代办分页查询
 * @param {*} form 
 * @param {*} pageSize 
 * @param {*} currentPage 
 */
export function informPage (form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/inform/page', data)
}
/**
 * 蓝色报表
 * @param {*} storeId 
 * @param {*} type 日期类型 0-天 1-周 2-月
 */
export function mainBlueReport () {
  return request.get(`/main/blueReport/${getStoreId()}`)
}
/**
 * 红色报表
 * @param {*} storeId 
 * @param {*} type 日期类型 0-天 1-周 2-月
 */
export function mainRedReport () {
  return request.get(`/main/redReport/${getStoreId()}`)
}
/**
 * 接待详情
 */
export function findAllReception () {
  return request.get(`/main/findAll/${getStoreId()}`)
}
